http://en.wikipedia.org/wiki/Subset_sum#Pseudo-polynomial_time_dynamic_programming_solution
Author: Shi Shougang
Created: 2015-03-05 Thu 23:21
Emacs 24.3.1 (Org mode 8.2.10)
Validate